package com.fj.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.fj.entity.BackendUser;
import com.fj.mapper.BackendUserMapper;
import com.fj.service.BackendUserService;
@Service
public class BackendUserServiceImpl implements BackendUserService{

    @Resource
    private BackendUserMapper backendUserMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return backendUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BackendUser record) {
        return backendUserMapper.insert(record);
    }

    @Override
    public int insertSelective(BackendUser record) {
        return backendUserMapper.insertSelective(record);
    }

    @Override
    public BackendUser selectByPrimaryKey(Long id) {
        return backendUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(BackendUser record) {
        return backendUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BackendUser record) {
        return backendUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public BackendUser login(String userCode) {
        return backendUserMapper.login(userCode);
    }
}
